package controller;

import model.User;
import service.UserService;

public class UserController {
    private UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    public User login(String username, String password) {
        return this.userService.login(username, password);
    }

    public void registerUser(User user) {
        this.userService.registerUser(user);
    }

    public void updateUser(User user) {
        this.userService.updateUser(user);
    }
}
